/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import objetos.personajes.Bando;

/**
 *
 * @author Yanire
 */
public class HiloManutencion extends Thread {

    private Bando[] bando;
    private LaVentana ventana;

    public HiloManutencion(Bando[] bando, LaVentana ventana) {
        this.bando = bando;
        this.ventana = ventana;

    }

    @Override
    public void run() {
        try {
            while (true) {
                sleep(100);
                ventana.setMensajeManutencion(ventana.getJuego().getManutencion());
            }
        } catch (InterruptedException e) {
        }
    }
}
